/// channel : "android"
/// downloadUrl : "更新地址"
/// isMust : true
/// upDateLabel : ["修复了若干bug","优化了主页显示","新增xxx,xxx,xxx功能"]
/// versionName : "1.23.6"
/// versionNum : 12

class VersionData {
  VersionData({
      String? channel, 
      String? downloadUrl, 
      bool? isMust, 
      List<String>? upDateLabel, 
      String? versionName, 
      int? versionNum,}){
    _channel = channel;
    _downloadUrl = downloadUrl;
    _isMust = isMust;
    _upDateLabel = upDateLabel;
    _versionName = versionName;
    _versionNum = versionNum;
}

  VersionData.fromJson(dynamic json) {
    _channel = json['channel'];
    _downloadUrl = json['downloadUrl'];
    _isMust = json['isMust'];
    _upDateLabel = json['upDateLabel'] != null ? json['upDateLabel'].cast<String>() : [];
    _versionName = json['versionName'];
    _versionNum = json['versionNum'];
  }
  String? _channel;
  String? _downloadUrl;
  bool? _isMust;
  List<String>? _upDateLabel;
  String? _versionName;
  int? _versionNum;

  String? get channel => _channel;
  String? get downloadUrl => _downloadUrl;
  bool? get isMust => _isMust;
  List<String>? get upDateLabel => _upDateLabel;
  String? get versionName => _versionName;
  int? get versionNum => _versionNum;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['channel'] = _channel;
    map['downloadUrl'] = _downloadUrl;
    map['isMust'] = _isMust;
    map['upDateLabel'] = _upDateLabel;
    map['versionName'] = _versionName;
    map['versionNum'] = _versionNum;
    return map;
  }

}